import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

public class Poison extends Accesories
{
    private int level;

    /**
     * Poison Constructor.
     */
    public Poison( int lev)
    {
        level=lev;
    }

    /**
     * Act - do whatever the Poison wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */public void act() 
    {
        super.shift( getX(), getY(), 3, 0, level);
    }    
}
